package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * null
 *
 * @TableName t_source_invoice_item
 */
@TableName(value = "t_source_invoice_item")
@Data
@NoArgsConstructor
@ApiModel(value = "TSourceInvoiceItem", description = "商品实体")
public class TSourceInvoiceItem extends Model implements Serializable {
  /**
   * 表唯一Id
   */
  @ApiModelProperty("表id")
  @TableId(type = IdType.ASSIGN_UUID, value = "item_id")
  private String itemId;
  
  @ApiModelProperty("父级id")
  private String parentId;
  /**
   * 明细序号
   */
  @ApiModelProperty("明细序号")
  private String id;
  
  /**
   * 发票代码
   */
  @ApiModelProperty("发票代码")
  private String fpdm;
  
  /**
   * 发票号码
   */
  @ApiModelProperty("发票号码")
  private String fphm;
  
  /**
   * 开票⽇期
   */
  @ApiModelProperty("开票⽇期")
  private Date kprq;
  
  /**
   * 商品编码
   */
  @ApiModelProperty("商品编码")
  private String spbm;
  
  /**
   * 货物劳务名称
   */
  @ApiModelProperty("货物劳务名称")
  private String mc;
  
  /**
   * 规格型号
   */
  @ApiModelProperty("规格型号")
  private String ggxh;
  
  /**
   * 单位
   */
  @ApiModelProperty("单位")
  private String jldw;
  
  /**
   * 数量
   */
  @ApiModelProperty("数量")
  private String sl;
  
  /**
   * 单价
   */
  @ApiModelProperty("单价")
  private BigDecimal dj;
  
  /**
   * ⾦额
   */
  @ApiModelProperty("⾦额")
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  private BigDecimal je;
  
  /**
   * 税率
   */
  @ApiModelProperty("税率")
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  private BigDecimal slv;
  
  /**
   * 税额
   */
  @ApiModelProperty("税额")
  @JsonFormat(shape = JsonFormat.Shape.STRING)
  private BigDecimal se;
  
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
}